<template>
  <el-dialog
    title="结清"
    :visible.sync="dialogVisible"
    width="750px"
    class="settle-dialog"
  >
    <el-row>
      <el-col :span="24" class="title">是否确定结清该车辆以及相关车辆？</el-col>
      <el-col :span="24" class="module">结清须知</el-col>
      <el-col :span="24">
        <div class="notice-item">
          <span class="point"></span>结清操作会把车辆所有关联设备一起结清。
        </div>
        <div class="notice-item">
          <span class="point"></span>首页风控报警将不包含已结清的车辆
        </div>
        <div class="notice-item">
          <span class="point"></span>车辆续费将不包含已结清的车辆。
        </div>
        <div class="notice-item">
          <span class="point"></span>
          已结清车辆可以在 结清列表
          中查询，并可以在表格中撤回成未结清状态。结清操作记录可以在 操作记录
          中查询
        </div>
      </el-col>
      <el-col :span="24" class="module">关联车辆</el-col>

      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="index" label="序号" width="50"></el-table-column>
        <el-table-column prop="code" label="车牌号" width="180">
        </el-table-column>
        <el-table-column prop="number" label="设备号" width="180">
        </el-table-column>
        <el-table-column prop="type" label="设备类型"> </el-table-column>
        <el-table-column prop="name" label="车组名称"> </el-table-column>
      </el-table>
      <el-col :span="24" class="module">结清备注</el-col>
      <el-col :span="24"
        ><el-input
          type="textarea"
          :rows="2"
          placeholder=""
          v-model="form.note"
        ></el-input
      ></el-col>
    </el-row>
    <span slot="footer" class="dialog-footer" style="text-align: center;">
      <!-- <el-button @click="dialogVisible = false">取 消</el-button> -->
      <el-button type="primary" @click="dialogVisible = false" size="mini"
        >结清</el-button
      >
      <!-- <el-button @click="dialogVisible = false" size="mini">取消</el-button> -->
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      checked: false,
      value: "",
      tableData: [
        {
          index: 1,
          code: 14020843471,
          number: 14020843471,
          type: "WX01A-W",
          name: "至尊宝8888"
        }
      ],
      form: {
        clock: false,
        firstTime: "00:00"
      }
    };
  },

  methods: {
    show() {
      this.dialogVisible = !this.dialogVisible;
    }
  }
};
</script>

<style lang="scss">
.settle-dialog {
  .el-dialog__header {
    background-color: #479de6 !important;

    .el-dialog__title,
    .el-dialog__close {
      color: #fff;
    }
  }

  .el-dialog__body {
    padding: 20px;
  }

  .el-dialog__footer {
    text-align: center;
  }

  .title {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 22px;
    color: #2e8ded;
    font-weight: bold;
  }

  .module {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 10px;
  }

  .notice-item {
    height: 30px;
    line-height: 30px;

    .point {
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #2e8ded;
      margin-right: 5px;
    }
  }

  .el-col {
    margin-bottom: 10px;
  }

  .el-table {
    margin-bottom: 30px;
  }
}
</style>
